<?php

namespace Lims\MainBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Partner
 */
class Partner
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var \DateTime
     */
    private $createdDate;

    /**
     * @var boolean
     */
    private $isActive;

    /**
     * @var integer
     */
    private $partnerTypeId;

    /**
     * @var \DateTime
     */
    private $updatedDate;

    /**
     * @var \Lims\MainBundle\Entity\Credit
     */
    private $credit;

    /**
     * @var \Lims\MainBundle\Entity\Debtor
     */
    private $debtor;

    /**
     * @var \Lims\MainBundle\Entity\Debtor
     */
    private $partnerDebtor;

    /**
     * @var \Lims\MainBundle\Entity\Status
     */
    private $status;

    /**
     * @var \Lims\MainBundle\Entity\Users
     */
    private $createdUser;

    /**
     * @var \Lims\MainBundle\Entity\Users
     */
    private $updatedUser;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set createdDate
     *
     * @param \DateTime $createdDate
     * @return Partner
     */
    public function setCreatedDate($createdDate)
    {
        $this->createdDate = $createdDate;

        return $this;
    }

    /**
     * Get createdDate
     *
     * @return \DateTime 
     */
    public function getCreatedDate()
    {
        return $this->createdDate;
    }

    /**
     * Set isActive
     *
     * @param boolean $isActive
     * @return Partner
     */
    public function setIsActive($isActive)
    {
        $this->isActive = $isActive;

        return $this;
    }

    /**
     * Get isActive
     *
     * @return boolean 
     */
    public function getIsActive()
    {
        return $this->isActive;
    }

    /**
     * Set partnerTypeId
     *
     * @param integer $partnerTypeId
     * @return Partner
     */
    public function setPartnerTypeId($partnerTypeId)
    {
        $this->partnerTypeId = $partnerTypeId;

        return $this;
    }

    /**
     * Get partnerTypeId
     *
     * @return integer 
     */
    public function getPartnerTypeId()
    {
        return $this->partnerTypeId;
    }

    /**
     * Set updatedDate
     *
     * @param \DateTime $updatedDate
     * @return Partner
     */
    public function setUpdatedDate($updatedDate)
    {
        $this->updatedDate = $updatedDate;

        return $this;
    }

    /**
     * Get updatedDate
     *
     * @return \DateTime 
     */
    public function getUpdatedDate()
    {
        return $this->updatedDate;
    }

    /**
     * Set credit
     *
     * @param \Lims\MainBundle\Entity\Credit $credit
     * @return Partner
     */
    public function setCredit(\Lims\MainBundle\Entity\Credit $credit = null)
    {
        $this->credit = $credit;

        return $this;
    }

    /**
     * Get credit
     *
     * @return \Lims\MainBundle\Entity\Credit 
     */
    public function getCredit()
    {
        return $this->credit;
    }

    /**
     * Set debtor
     *
     * @param \Lims\MainBundle\Entity\Debtor $debtor
     * @return Partner
     */
    public function setDebtor(\Lims\MainBundle\Entity\Debtor $debtor = null)
    {
        $this->debtor = $debtor;

        return $this;
    }

    /**
     * Get debtor
     *
     * @return \Lims\MainBundle\Entity\Debtor 
     */
    public function getDebtor()
    {
        return $this->debtor;
    }

    /**
     * Set partnerDebtor
     *
     * @param \Lims\MainBundle\Entity\Debtor $partnerDebtor
     * @return Partner
     */
    public function setPartnerDebtor(\Lims\MainBundle\Entity\Debtor $partnerDebtor = null)
    {
        $this->partnerDebtor = $partnerDebtor;

        return $this;
    }

    /**
     * Get partnerDebtor
     *
     * @return \Lims\MainBundle\Entity\Debtor 
     */
    public function getPartnerDebtor()
    {
        return $this->partnerDebtor;
    }

    /**
     * Set status
     *
     * @param \Lims\MainBundle\Entity\Status $status
     * @return Partner
     */
    public function setStatus(\Lims\MainBundle\Entity\Status $status = null)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return \Lims\MainBundle\Entity\Status 
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set createdUser
     *
     * @param \Lims\MainBundle\Entity\Users $createdUser
     * @return Partner
     */
    public function setCreatedUser(\Lims\MainBundle\Entity\Users $createdUser = null)
    {
        $this->createdUser = $createdUser;

        return $this;
    }

    /**
     * Get createdUser
     *
     * @return \Lims\MainBundle\Entity\Users 
     */
    public function getCreatedUser()
    {
        return $this->createdUser;
    }

    /**
     * Set updatedUser
     *
     * @param \Lims\MainBundle\Entity\Users $updatedUser
     * @return Partner
     */
    public function setUpdatedUser(\Lims\MainBundle\Entity\Users $updatedUser = null)
    {
        $this->updatedUser = $updatedUser;

        return $this;
    }

    /**
     * Get updatedUser
     *
     * @return \Lims\MainBundle\Entity\Users 
     */
    public function getUpdatedUser()
    {
        return $this->updatedUser;
    }
    /**
     * @var \Lims\MainBundle\Entity\PartnerType
     */
    private $partnerType;


    /**
     * Set partnerType
     *
     * @param \Lims\MainBundle\Entity\PartnerType $partnerType
     * @return Partner
     */
    public function setPartnerType(\Lims\MainBundle\Entity\PartnerType $partnerType = null)
    {
        $this->partnerType = $partnerType;

        return $this;
    }

    /**
     * Get partnerType
     *
     * @return \Lims\MainBundle\Entity\PartnerType 
     */
    public function getPartnerType()
    {
        return $this->partnerType;
    }
}
